<?php

use common\server\BasicDataServer;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use yii\bootstrap\Modal;
use yii\helpers\Url;
/* @var $this yii\web\View */
/* @var $model common\models\HouseModel */
/* @var $form yii\widgets\ActiveForm */
?>

<div class="house-model-form">

    <?php $form = ActiveForm::begin(); ?>

    <div class="row">
        <div class="col-lg-6">
			
			<?= $form->field($model, 'tid')->textInput(['type'=>'hidden','id'=>'houseidname'])->label(false);?>
			<?= $form->field($model, 'typename')->textInput();?>
			<?= $form->field($model, 'msg')->textInput();?>
			
			<?php
	            if($error != 'ok'){
					echo "<p style='color:red;'>{$error}</p>";
	            }			
            ?>
			
        </div>
    </div>
	
	<br>
	<br>
    <div class="form-group">
        <?= Html::submitButton($model->isNewRecord ? '添加广告类型' : '修 改', ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
    </div>

    <?php ActiveForm::end(); ?>
    

    	
    

</div>
